package cn.demo.service.serviceimpl;

import cn.demo.dao.PasswordDao;
import cn.demo.service.PasswordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author weizhongli
 * @Date 2020/4/12
 * @Version v1.0
 * @Description 密码修改业务接口实现类
 **/
@Service
public class PasswordServiceImpl implements PasswordService {

    //依赖注入dao
    @Autowired
    private PasswordDao passwordDao;


    public int update(String newPassword, String userCode) {
        return passwordDao.update(newPassword, userCode);
    }

    public String selectNewPassword(String userCode) {
        return passwordDao.selectNewPassword(userCode);
    }
}
